package doubleclick.action;

import com.opensymphony.xwork2.ActionSupport;

import doubleclick.model.Payment;

@SuppressWarnings("serial")
public class PaymentAction extends ActionSupport {

    private Payment payment;
    
    public Payment getPayment() {
        return payment;
    }

    public void setPayment(Payment payment) {
        this.payment = payment;
    }

    public String execute() {
        // simulate a long processing task 
        try {
            Thread.sleep(4000);
        } catch (InterruptedException e) {
        }
        return SUCCESS;
    }
}
